package bean;

import java.util.Enumeration;
import java.util.Vector;

public class OperatorVector 
{
	private Vector<String> vector;
    private static final OperatorVector operatorVector=new OperatorVector();
    
    private OperatorVector()
    {
    	vector=new Vector<String>();
    }
    public static OperatorVector getInstance()
    {
    	return operatorVector;
    }
    public void addOperator(String name)
    {
    	if(name!=null)
    		vector.addElement(name);
    }
    public void removeOperator(String name)
    {
    	if(name!=null)
    		vector.remove(name);
    }
    public Enumeration<String> getOperatorList()
    {
    	return vector.elements();
    }
    public int getOperatorCount()
    {
    	return vector.size();
    }
}